package com.odaqiang.testsn.prefix;


import com.odaqiang.testsn.domain.Sn;

public class AppPrefix extends BasePrefix {
    /**
     * yyyyMMdd num random[1000,9999]
     *
     * @param l
     * @return
     */

    @Override
    public String buildPrefix(Sn.Type type, Long l) {
        return String.format("%s%s%s%s",
                type.getKeyName() + "_",
                getYyyyMMdd(),
                l,
                getRandomNumber(4));
    }
}
